import a1 from '@/components/pages/a1';
import a2 from '@/components/pages/a2';
import a3 from '@/components/pages/a3';

export default [
  {
    path: '/',
    redirect: '/a1',
  },
  {
    path: '/a1',
    component: a1,
  },
  {
    path: '/a2',
    component: a2,
    children: [
      {
        name: 'a4',
        path: 'a4',
        component: { template: '<div>{{$route.query.pid}}</div>' },
      },
    ],
  },
  {
    path: '/a3',
    component: a3,
  },
  {
    path: '*',
    redirect: '/a3',
  },
];
